ethers.
If you are unable to upgrade to ethers v6, then you can use v1.10.5 of @0xsequence or 3.0.0 of @0xsequence/kit.
ethers@^5.0.0 in the past, outlined below are the common ways using Ethers with Sequence will change for you:
Static and Default RPC Provider
To use ethers to connect and make RPC calls to a blockchain node in order to query information, doing so in a static or default way both have differences:provider.ts
Big Number Support
If you’re using big numbers to generate randomly spaced token ID’s, nonces, or some other application of large string based numbers, ethers now supports built-in ES2020 BigInt offered by modern JavaScript environments.bigNumber.ts
Removal of Ethers Utilities
Using Ethers you will notice there is no longer aethers.utils path. Therefore, all paths should be updated without the utils:
contract_parameters.ts
Utility Hash Value Packing
If you’re using ethers utilities to perform signature creation then usingecrecover on-chain, signature creation is now slightly different:
signature_creation.ts